package com.itheima.test2;

public class Test2 {
    public static void main(String[] args) {
        Student stu1 = new Student();
        stu1.setName("李四");
        stu1.setAge(23);
        Student stu2 = new Student();
        stu2.setName("李四");
        stu2.setAge(23);
        boolean equals = stu1.equals(stu2);
        System.out.println(equals);
    }
}
